<<<<<<< HEAD
<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/8/14
 * Time: 14:44
 */

namespace app\index\model;


class Image extends Base
{
    protected $table = 'sy_image';

    public function getUrlAttr($value)
    {
        return config('url.QiNiuUrl') . '/' . $value;
    }

    public function getFromAttr($value)
    {
        $status = [
            1 => '本地',
            2 => '公网',
        ];
        return $status[$value];
    }
=======
<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/8/14
 * Time: 14:44
 */

namespace app\index\model;


class Image extends Base
{
    protected $table = 'sy_image';

    public function getUrlAttr($value)
    {
        return config('url.QiNiuUrl') . '/' . $value;
    }

    public function getFromAttr($value)
    {
        $status = [
            1 => '本地',
            2 => '公网',
        ];
        return $status[$value];
    }
>>>>>>> 93c40d8086b7a8d5a9aa3548fdc8eb06a4272cf7
}